<template>
  <div class="app-container">
    <AppHeader />
    <div class="main-layout">
      <AppSidebar v-if="$route.path !== '/login'" />
      <main class="main-content">
        <router-view />
      </main>
    </div>
  </div>
</template>

<script>
import AppHeader from './components/Header.vue';
import AppSidebar from './components/Sidebar.vue';

export default {
  name: 'App',
  components: {
    AppHeader,
    AppSidebar
  }
}
</script>

<style>
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height: 100%;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.main-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}
</style>
